#!/bin/bash 

echo "Executing dexen-update.sh"

echo "kill dexen and python processes"
# kill running dexen
# this is why this file does not have dexen in the name
sudo pkill dexen
sudo pkill python

echo "svn update"
# svn
sudo svn up /usr/local/dexen
sudo svn up /usr/local/houdini_libs
sudo svn up /etc
sudo svn up /usr

echo "update config"
# update the new conf
sudo initctl reload-configuration
sudo chmod +x /etc/init/dex*.sh

echo "clean up log files"
#clean up log files
sudo rm /var/log/upstart/*


